import { request } from "@/utils"
import { message } from "antd"

export function getRefer () {
  return request({
    url: '/get-refer'
  }).catch(error => {
    // console.log(error.message)
    message.error('网络异常，请开启服务器')
  })
}

export function getSolutionByName (name) {
  return request({
    url: '/get-solution',
    params: {
      name
    }
  })
}